//------------------------------------------------------------------------------
// @description 管理员端-突出工作-进行中-班级详情-学业情况详情
//------------------------------------------------------------------------------
<script setup name="OutstandingWorkProceedDetailMark">
//------------------------------------------------------------------------------
// 模块导入
//------------------------------------------------------------------------------
import { ref,watchEffect } from "vue";
import { useRouter } from "vue-router";

import { ElMessage } from "element-plus";
import { Close } from "@element-plus/icons-vue";

import service from "@/utils/request";

//------------------------------------------------------------------------------
// 数据存储
//------------------------------------------------------------------------------
const router = useRouter();
const routerQuery = router.currentRoute.value.query;


const studentStudyData = ref({
    //基本学业
    baseStudy: {
        exam: "无",
        examScore: "0",
        award: "无",
        politicalOutlook: "无",
        weightedGpa: "0.0",
        volunteerHours: "0",
        score: "",
    },
    //比赛
    competition: {
        situation: "无",
        img: [],
        word: [],
        score: "",
    },
    //论文
    paper: {
        situation: "无",
        img: [],
        word: [],
        score: "",
    },
    // 科研成果
    scienceAchievement: {
        situation: "无",
        copyright:"无",
        img: [],
        word: [],
        score: "",
    },
    // 违纪
    violation: {
        situation: "无",
        score: "",
    },
    // 毕业去向
    graduation: {
        situation: "无",
        score: "",
    },
    // 分数合计
    totalScore: "",
});
const totalScore = ref(0);
watchEffect(() => {
    totalScore.value = 0;
    totalScore.value += Number(studentStudyData.value.baseStudy.score) || 0;
    totalScore.value += Number(studentStudyData.value.competition.score) || 0;
    totalScore.value += Number(studentStudyData.value.paper.score) || 0;
    totalScore.value += Number(studentStudyData.value.scienceAchievement.score) || 0;
    totalScore.value += Number(studentStudyData.value.violation.score) || 0;
    totalScore.value += Number(studentStudyData.value.graduation.score) || 0;
})

//图片预览相关
const isShowPreviewImg = ref(false);
const previewImgData = ref('');

//------------------------------------------------------------------------------
// 数据处理方法
//------------------------------------------------------------------------------
const fixedStudentStudyData = (data) => {
    if(!data) return {};
    return {
        //基本学业
        baseStudy: {
            exam: data.examLevel,
            examScore: data.examscore,
            award: data.scholarship,
            politicalOutlook: data.politicalAppearance,
            weightedGpa: data.grades,
            volunteerHours: data.volunteerDuration,
            score: data.base_messageScore,
        },
        //比赛
        competition: {
            situation: data.competitionDescription,
            img: data.competitionPath.filter((item) => {
                if(!item.includes(".doc") && !item.includes(".docx")) return item;
            }),
            word: data.competitionPath.filter((item) => {
                if(item.includes(".doc") || item.includes(".docx")) return item;
            }),
            score: data.competitionScore,
        },
        //论文
        paper: {
            situation: data.paperDescription,
            img: data.paperPath.filter((item) => {
                if(!item.includes(".doc") && !item.includes(".docx")) return item;
            }),
            word: data.paperPath.filter((item) => {
                if(item.includes(".doc") || item.includes(".docx")) return item;
            }),
            score: data.paperScore,
        },
        // 科研成果
        scienceAchievement: {
            situation: data.scientificResearchDescription,
            copyright: data.copyright,
            img: data.scientificResearchPath.filter((item) => {
                if(!item.includes(".doc") && !item.includes(".docx")) return item;
            }),
            word: data.scientificResearchPath.filter((item) => {
                if(item.includes(".doc") || item.includes(".docx")) return item;
            }),
            score: data.scientificResearchScore,
        },
        // 违纪
        violation: {
            situation: data.disciplinaryText,
            score: data.disciplinaryScore,
        },
        // 毕业去向
        graduation: {
            situation: data.graduationText,
            score: data.graduationScore,
        },
    }
}
const getStudentStudyData = () => {
    service({
        method: "get",
        url: "/admin/studentquestionnairelist",
        headers: {
            Authorization: localStorage.getItem('token'),
        },
        params: {
            questionnaireId: routerQuery.taskId,
            studentName: routerQuery.name,
            studentId: routerQuery.id,
            questionnaireName: routerQuery.taskName,
            className: routerQuery.class,
            major: routerQuery.major
        }
    }).then((res) => {
        studentStudyData.value = fixedStudentStudyData(res.data.data);
    })
}
getStudentStudyData();

//点击下载word文档
const downloadWord = (url) => {
    url.forEach((item) => {
        const elink = document.createElement('a');
        document.body.appendChild(elink);
        elink.style.display = 'none';
        elink.href = item;
        elink.click();
        document.body.removeChild(elink);
    })
}

//点击预览图片
const previewImgClick = (url) => {
    previewImgData.value = url;
    isShowPreviewImg.value = true;
}

//输入分数
const scoreInput = (score,type) => {
    service({
        method: "post",
        url: "/admin/studentscore",
        headers: {
            Authorization: localStorage.getItem('token'),
        },
        params: {
            studentId: Number(routerQuery.id),
            questionnaireId: Number(routerQuery.taskId),
            score: Number(score),
            type: type
        }
    }).then((res) => {
        getStudentStudyData();
    })
}

//点击保存
const saveClick = () => {
    service({
        method: "post",
        url: "/admin/keepstudentquestionnairescore",
        headers: {
            Authorization: localStorage.getItem('token'),
        },
        params: {
            studentId: Number(routerQuery.id),
            questionnaireId: Number(routerQuery.taskId),
            sumscore: Number(totalScore.value) || 0,
        }
    }).then((res) => {
        if (res.data.message === "请求正常") {
            router.push({
                path: '/administrator/outstandingWork/proceed/detail',
                query: routerQuery
            })
            ElMessage({
                message: "保存成功",
                type: "success",
            });
        } else {
            ElMessage({
                message: "保存失败" + res.data.message,
                type: "error",
            })
        }
    })
}
</script>

<template>
    <!-- 预览图片 -->
    <div class="imgPreview" v-show="isShowPreviewImg" @click="isShowPreviewImg = false">
        <div class="imgContent">
            <span class="close" @click="isShowPreviewImg = false">
                <el-icon><Close /></el-icon>
            </span>
            <img :src="previewImgData" alt="">            
        </div>
    </div>

    <div class="outstandingWorkProceedDetailMark">
        <div class="header">
            <span @click="router.push('/administrator/outstandingWork')">进行中-突出工作情况列表</span>
            <span @click="router.push({
                path: '/administrator/outstandingWork/proceed/detail',
                query: routerQuery
            })">/班级填报情况</span>
            <span>/学生学业情况详情</span>
        </div>
        <!-- 填写部分 -->
        <div class="layout">
            <div class="layoutHeader">学业情况详情</div>
            <div class="layoutContent">
                <!-- 学生信息 -->
                <div class="studentInfo">
                    <div class="contentHeader">
                        <div class="line"></div>
                        <div>学生信息</div>
                    </div>
                    <div class="content">
                        <div class="item">
                            <span>姓名</span>
                            <span>{{ routerQuery.name }}</span>
                        </div>
                        <div class="item">
                            <span>学号</span>
                            <span>{{ routerQuery.id }}</span>
                        </div>
                        <div class="item">
                            <span>专业</span>
                            <span>{{ routerQuery.major }}</span>
                        </div>
                        <div class="item">
                            <span>班级</span>
                            <span>{{ routerQuery.class }}</span>
                        </div>
                        <div class="item">
                            <span>任务名称</span>
                            <span>{{ routerQuery.taskName }}</span>
                        </div>
                        <div class="item">
                            <span>任务状态</span>
                            <span>{{ routerQuery.taskState }}</span>
                        </div>
                    </div>
                </div>
                <!-- 基本学业 -->
                <div class="baseStudy">
                    <div class="contentHeader">
                        <div class="line"></div>
                        <div>基本学业</div>
                    </div>
                    <div class="content">
                        <div class="item">
                            <span>考试</span>
                            <span>{{ studentStudyData.baseStudy.exam }}</span>
                        </div>
                        <div class="item">
                            <span>分数</span>
                            <span>{{ studentStudyData.baseStudy.examScore }}</span>
                        </div>
                        <div class="item">
                            <span>奖金情况</span>
                            <span>{{ studentStudyData.baseStudy.award }}</span>
                        </div>
                        <div class="item">
                            <span>政治面貌</span>
                            <span>{{ studentStudyData.baseStudy.politicalOutlook }}</span>
                        </div>
                        <div class="item">
                            <span>加权绩点</span>
                            <span>{{ studentStudyData.baseStudy.weightedGpa }}</span>
                        </div>
                        <div class="item">
                            <span>志愿时长</span>
                            <span>{{ studentStudyData.baseStudy.volunteerHours }}</span>
                        </div>
                        <div class="item">
                            <span>分数</span>
                            <input 
                            type="text" 
                            placeholder="请输入" 
                            v-model="studentStudyData.baseStudy.score"
                            @keyup.enter="scoreInput(studentStudyData.baseStudy.score,0)"
                            @blur="scoreInput(studentStudyData.baseStudy.score,0)"
                            >
                        </div>
                    </div>
                </div>
                <!-- 比赛 -->
                <div class="competition">
                    <div class="contentHeader">
                        <div class="line"></div>
                        <div>比赛</div>
                    </div>
                    <div class="content">
                        <div class="textItem">
                            <span class="title">获奖情况</span>
                            <span>{{ studentStudyData.competition.situation }}</span>
                        </div>
                        <div class="proveItem">
                            <div class="title">获奖证书</div>
                            <div class="proveItemContent" v-if="studentStudyData.competition.img.length > 0 || studentStudyData.competition.word.length > 0">
                                <div class="img" v-if="studentStudyData.competition.img.length > 0">
                                    <img  v-for="item in studentStudyData.competition.img" :src="item" alt="" @click="previewImgClick(item)">                              
                                </div>
                                <div class="download" @click="downloadWord(studentStudyData.competition.word)" v-if="studentStudyData.competition.word.length > 0">下载word材料</div>                                
                            </div>
                            <div v-else>无</div>
                        </div>
                        <div class="scoreItem">
                            <span class="title">分数</span>
                            <input 
                            type="text" 
                            placeholder="请输入" 
                            v-model="studentStudyData.competition.score"
                            @keyup.enter="scoreInput(studentStudyData.competition.score,1)"
                            @blur="scoreInput(studentStudyData.competition.score,1)"
                            >
                        </div>
                    </div>
                </div>
                <!-- 论文 -->
                <div class="paper">
                    <div class="contentHeader">
                        <div class="line"></div>
                        <div>论文</div>
                    </div>
                    <div class="content">
                        <div class="textItem">
                            <span class="title">获奖情况</span>
                            <span>{{ studentStudyData.paper.situation }}</span>
                        </div>
                        <div class="proveItem">
                            <div class="title">证明资料</div>
                            <div class="proveItemContent" v-if="studentStudyData.paper.img.length > 0 || studentStudyData.paper.word.length > 0">
                                <div class="img" v-if="studentStudyData.paper.img.length > 0">
                                    <img  v-for="item in studentStudyData.paper.img" :src="item" alt="" @click="previewImgClick(item)">                              
                                </div>
                                <div class="download" @click="downloadWord(studentStudyData.paper.word)" v-if="studentStudyData.paper.word.length > 0">下载word材料</div>                                
                            </div>
                            <div v-else>无</div>
                        </div>
                        <div class="scoreItem">
                            <span class="title">分数</span>
                            <input 
                            type="text" 
                            placeholder="请输入" 
                            v-model="studentStudyData.paper.score"
                            @keyup.enter="scoreInput(studentStudyData.paper.score,2)"
                            @blur="scoreInput(studentStudyData.paper.score,2)"
                            >
                        </div>
                    </div>
                </div>
                <!-- 科研成果 -->
                <div class="scientific">
                    <div class="contentHeader">
                        <div class="line"></div>
                        <div>科研成果</div>
                    </div>
                    <div class="content">
                        <div class="item">
                            <span class="title">授权的发明专利情况</span>
                            <span>{{ studentStudyData.scienceAchievement.situation }}</span>
                        </div>
                        <div class="item">
                            <span class="title">软件著作权情况</span>
                            <span>{{ studentStudyData.scienceAchievement.copyright }}</span>
                        </div>
                        <div class="proveItem">
                            <div class="title">证明资料</div>
                            <div class="proveItemContent" v-if="studentStudyData.scienceAchievement.img.length > 0 || studentStudyData.scienceAchievement.word.length > 0">
                                <div class="img" v-if="studentStudyData.scienceAchievement.img.length > 0">
                                    <img  v-for="item in studentStudyData.scienceAchievement.img" :src="item" alt="" @click="previewImgClick(item)">                              
                                </div>
                                <div class="download" @click="downloadWord(studentStudyData.scienceAchievement.word)" v-if="studentStudyData.scienceAchievement.word.length > 0">下载word材料</div>                                
                            </div>
                            <div v-else>无</div>
                        </div>
                        <div class="scoreItem">
                            <span class="title">分数</span>
                            <input 
                            type="text" 
                            placeholder="请输入" 
                            v-model="studentStudyData.scienceAchievement.score"
                            @keyup.enter="scoreInput(studentStudyData.scienceAchievement.score,3)"
                            @blur="scoreInput(studentStudyData.scienceAchievement.score,3)"
                            >
                        </div>
                    </div>
                </div>
                <!--  违纪情况 -->
                <div class="violation">
                    <div class="contentHeader">
                        <div class="line"></div>
                        <div>违纪</div>
                    </div>
                    <div class="content">
                        <div class="item">
                            <span class="title">违纪情况</span>
                            <span>{{ studentStudyData.violation.situation }}</span>
                        </div>
                        <div class="item">
                            <span class="score">分数</span>
                            <input 
                            type="text" 
                            placeholder="请输入" 
                            v-model="studentStudyData.violation.score"
                            @keyup.enter="scoreInput(studentStudyData.violation.score,4)"
                            @blur="scoreInput(studentStudyData.violation.score,4)"
                            >
                        </div>
                    </div>
                </div>
                <!--  毕业去向 -->
                <div class="graduation">
                    <div class="contentHeader">
                        <div class="line"></div>
                        <div>毕业去向</div>
                    </div>
                    <div class="content">
                        <div class="item">
                            <span class="title">毕业去向</span>
                            <span>{{ studentStudyData.graduation.situation }}</span>
                        </div>
                        <div class="item">
                            <span class="score">分数</span>
                            <input 
                            type="text" 
                            placeholder="请输入" 
                            v-model="studentStudyData.graduation.score"
                            @keyup.enter="scoreInput(studentStudyData.graduation.score,5)"
                            @blur="scoreInput(studentStudyData.graduation.score,5)"
                            >
                        </div>
                    </div>
                </div>
                <!--  分数合计 -->
                <div class="totalScore">
                    <div class="contentHeader">
                        <div class="line"></div>
                        <div>分数合计</div>
                    </div>
                    <div class="content">
                        <div class="item">
                            <span class="score">分数合计</span>
                            <span>{{ totalScore }}</span>
                        </div>
                    </div>
                </div>
                <!-- 按钮部分 -->
                <div class="submitButton">
                    <div class="success" @click="saveClick">保存</div>
                </div>
            </div>
        </div>
    </div>
</template>

<style scoped lang="scss">
//预览图片
.imgPreview{
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    .imgContent{
        position: relative;
        .close{
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            font-size: 20px;
            &:hover{
                color: red;
            }
        }
    }
}



.outstandingWorkProceedDetailMark {
    width: 100%;
    height: 100%;
    font-weight: 500;
    .header{
        width: 100%;
        height: 10%;
        padding-left: 15px;
        display: flex;
        align-items: center;
        color:#7f7f7f;
        border-top: 1px solid;
        border-bottom: 1px solid;
        span:hover{
            color:#4c5fbc;
            font-weight: 600;
        }
    }
    .layout{
        width: 100%;
        height: 90%;
        padding: 0 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        .layoutHeader{
            width: 100%;
            margin-top: 40px;
            font-size: 20px;
        }
        .layoutContent{
            width: 100%;
            height: 85%;
            margin-top: 10px;
            margin-bottom: 10px;
            color:#7a838f;
            overflow: auto;
            &::-webkit-scrollbar{
                display: none;
            }
            // 学生信息
            .studentInfo{
                width: 100%;
                padding: 20px 15px;
                background-color: #fff;
                border-radius: 5px;
                font-size: 15px;
                .contentHeader{
                    width: 100%;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 18px;
                    color:#000;
                    .line{
                        width: 5px;
                        height: 18px;
                        background-color: #4c5fbc;
                    }
                }
                .content{
                    width: 100%;
                    height: calc(100% - 25px);
                    display: flex;
                    flex-wrap: wrap;
                    padding: 0 20px;
                    .item{
                        width: 33%;
                        height: fit-content;
                        margin-top: 10px;
                        display: flex;
                        align-items: center;
                        gap:10px;
                        overflow: hidden;
                    }
                }
            }
            // 基本学业
            .baseStudy{
                width: 100%;
                margin-top: 40px;
                padding: 20px 15px;
                background-color: #fff;
                border-radius: 5px;
                font-size: 15px;
                .contentHeader{
                    width: 100%;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 18px;
                    color:#000;
                    .line{
                        width: 5px;
                        height: 18px;
                        background-color: #4c5fbc;
                    }
                }
                .content{
                    width: 100%;
                    height: calc(100% - 25px);
                    display: flex;
                    flex-wrap: wrap;
                    padding: 0 20px;
                    .item{
                        width: 33%;
                        height: fit-content;
                        margin-top: 10px;
                        display: flex;
                        align-items: center;
                        gap:10px;
                        overflow: hidden;
                        input{
                            width: 200px;
                            height:25px;
                            outline: none;
                            border: none;
                            border-radius: 5px;
                            background-color: #e5e6eb;
                            color:#86909c;
                            text-indent: 10px;
                        }
                    }
                }
            }
            // 比赛
            .competition{
                width: 100%;
                margin-top: 40px;
                padding: 20px 15px;
                background-color: #fff;
                border-radius: 5px;
                .contentHeader{
                    width: 100%;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 18px;
                    color:#000;
                    .line{
                        width: 5px;
                        height: 18px;
                        background-color: #4c5fbc;
                    }
                }
                .content{
                    width: 100%;
                    height: calc(100% - 25px);
                    padding: 0 20px;
                    .textItem{
                        width: 100%;
                        margin-top: 30px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                            white-space: nowrap;
                        }
                    }
                    .proveItem{
                        width: 100%;
                        margin-top: 30px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        .proveItemContent{
                            width: calc(100% - 70px);
                            .img{
                                width: 100%;
                                display: flex;
                                gap:10px;
                                img{
                                    width: 100px;
                                    height: 150px;
                                }
                            }
                            .download{
                                width: 100px;
                                height: 25px;
                                margin-top: 5px;
                                text-align: center;
                                line-height: 25px;
                                background-color: #f4f4f5;
                                border: 1px solid #909399;
                                border-radius: 3px;
                                color:#909399;
                                font-size: 14px;
                                cursor: pointer;
                                &:hover{
                                    background-color: #f4f4f5d2;
                                    color:#909399d2;
                                }
                            }                          
                        }
                    }
                    .scoreItem{
                        width: 100%;
                        margin-top: 30px;
                        display: flex;
                        align-items: center;
                        gap: 40px;
                        .title{
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        input{
                            width: 200px;
                            height:25px;
                            outline: none;
                            border: none;
                            border-radius: 5px;
                            background-color: #e5e6eb;
                            color:#86909c;
                            text-indent: 10px;
                        }
                    }
                }
            }
            // 论文
            .paper{
                width: 100%;
                margin-top: 40px;
                padding: 20px 15px;
                background-color: #fff;
                border-radius: 5px;
                .contentHeader{
                    width: 100%;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 18px;
                    color:#000;
                    .line{
                        width: 5px;
                        height: 18px;
                        background-color: #4c5fbc;
                    }
                }
                .content{
                    width: 100%;
                    height: calc(100% - 25px);
                    padding: 0 20px;
                    .textItem{
                        width: 100%;
                        margin-top: 30px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                            white-space: nowrap;
                        }
                    }
                    .proveItem{
                        width: 100%;
                        margin-top: 30px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        .proveItemContent{
                            width: calc(100% - 70px);
                            .img{
                                width: 100%;
                                display: flex;
                                gap:10px;
                                img{
                                    width: 100px;
                                    height: 150px;
                                }
                            }
                            .download{
                                width: 100px;
                                height: 25px;
                                margin-top: 5px;
                                text-align: center;
                                line-height: 25px;
                                background-color: #f4f4f5;
                                border: 1px solid #909399;
                                border-radius: 3px;
                                color:#909399;
                                font-size: 14px;
                                cursor: pointer;
                                &:hover{
                                    background-color: #f4f4f5d2;
                                    color:#909399d2;
                                }
                            }                          
                        }
                    }
                    .scoreItem{
                        width: 100%;
                        margin-top: 30px;
                        display: flex;
                        align-items: center;
                        gap: 40px;
                        .title{
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        input{
                            width: 200px;
                            height:25px;
                            outline: none;
                            border: none;
                            border-radius: 5px;
                            background-color: #e5e6eb;
                            color:#86909c;
                            text-indent: 10px;
                        }
                    }
                }
            }
            //科研成果
            .scientific{
                width: 100%;
                margin-top: 40px;
                padding: 20px 15px;
                background-color: #fff;
                border-radius: 5px;
                .contentHeader{
                    width: 100%;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 18px;
                    color:#000;
                    .line{
                        width: 5px;
                        height: 18px;
                        background-color: #4c5fbc;
                    }
                }
                .content{
                    width: 100%;
                    height: calc(100% - 25px);
                    padding: 0 20px;
                    .item{
                        width: 100%;
                        margin-top: 20px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 150px;
                            text-align: right;
                            white-space: nowrap;
                        }
                    }
                    .proveItem{
                        width: 100%;
                        margin-top: 30px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 150px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        .proveItemContent{
                            width: calc(100% - 70px);
                            .img{
                                width: 100%;
                                display: flex;
                                gap:10px;
                                img{
                                    width: 100px;
                                    height: 150px;
                                }
                            }
                            .download{
                                width: 100px;
                                height: 25px;
                                margin-top: 5px;
                                text-align: center;
                                line-height: 25px;
                                background-color: #f4f4f5;
                                border: 1px solid #909399;
                                border-radius: 3px;
                                color:#909399;
                                font-size: 14px;
                                cursor: pointer;
                                &:hover{
                                    background-color: #f4f4f5d2;
                                    color:#909399d2;
                                }
                            }                          
                        }
                    }
                    .scoreItem{
                        width: 100%;
                        margin-top: 30px;
                        display: flex;
                        align-items: center;
                        gap: 40px;
                        .title{
                            width: 150px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        input{
                            width: 200px;
                            height:25px;
                            outline: none;
                            border: none;
                            border-radius: 5px;
                            background-color: #e5e6eb;
                            color:#86909c;
                            text-indent: 10px;
                        }
                    }
                }
            }
            //违纪情况
            .violation{
                width: 100%;
                margin-top: 40px;
                padding: 20px 15px;
                background-color: #fff;
                border-radius: 5px;
                .contentHeader{
                    width: 100%;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 18px;
                    color:#000;
                    .line{
                        width: 5px;
                        height: 18px;
                        background-color: #4c5fbc;
                    }
                }
                .content{
                    width: 100%;
                    height: calc(100% - 25px);
                    padding: 0 20px;
                    .item{
                        width: 100%;
                        margin-top: 20px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 70px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        .score{
                            display: inline-block;
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                        }
                        input{
                            width: 200px;
                            height: 30px;
                            outline: none;
                            border: none;
                            border-radius: 5px;
                            background-color: #e5e6eb;
                            color:#86909c;
                            text-indent: 10px;
                        }
                    }
                }
            }
            //毕业去向
            .graduation{
                width: 100%;
                margin-top: 40px;
                padding: 20px 15px;
                background-color: #fff;
                border-radius: 5px;
                .contentHeader{
                    width: 100%;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 18px;
                    color:#000;
                    .line{
                        width: 5px;
                        height: 18px;
                        background-color: #4c5fbc;
                    }
                }
                .content{
                    width: 100%;
                    height: calc(100% - 25px);
                    padding: 0 20px;
                    .item{
                        width: 100%;
                        margin-top: 20px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 70px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        .score{
                            display: inline-block;
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                        }
                        input{
                            width: 200px;
                            height: 30px;
                            outline: none;
                            border: none;
                            border-radius: 5px;
                            background-color: #e5e6eb;
                            color:#86909c;
                            text-indent: 10px;
                        }
                    }
                }
            }
            //分数合计
            .totalScore{
                width: 100%;
                margin-top: 40px;
                padding: 20px 15px;
                background-color: #fff;
                border-radius: 5px;
                .contentHeader{
                    width: 100%;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 18px;
                    color:#000;
                    .line{
                        width: 5px;
                        height: 18px;
                        background-color: #4c5fbc;
                    }
                }
                .content{
                    width: 100%;
                    height: calc(100% - 25px);
                    padding: 0 20px;
                    .item{
                        width: 100%;
                        margin-top: 20px;
                        display: flex;
                        gap: 40px;
                        .title{
                            width: 70px;
                            text-align: right;
                            white-space: nowrap;
                        }
                        .score{
                            display: inline-block;
                            width: 70px;
                            height: 30px;
                            line-height: 30px;
                            text-align: right;
                        }
                    }
                }
            }
            //保存按钮
            .submitButton{
                width: 100%;
                margin-top: 20px;
                padding-left: 20px;
                div{
                    width: 150px;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    border-radius: 10px;
                    color:#fff;
                    cursor: pointer;
                    background-color: #e43535;
                }
            }
        }
    }
}
</style>